﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using myschoolDal;

namespace school
{
    public partial class aboutsource : Form
    {
        //变量，学期和课程
        private string term;
        private string source;

        public aboutsource()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text == "" || textBox3.Text == "")
            {
                MessageBox.Show("错误：" + bug.Class1.worng4001, "提示");
            }
            else
            {
                term = comboBox1.SelectedItem.ToString();
                source = textBox3.Text.ToString();
                dataGridView1.DataSource = manserver.ManGetAllSourceDetail(term, source).Tables[0].DefaultView;
            }
        }
    }
}
